﻿/* SharePoint Console Project
 * Http://SharePointConsole.codeplex.com
 * Copyright Jean-Alain Baeyens (2009)
 * Software under Microsoft Reciprocal License (Ms-RL)
 */

using System;
using System.Collections.Generic;
using System.Text;
using Sharepoint.Console.Entities;

namespace Sharepoint.Console.Commands
{
    public abstract class BaseCommande : ISharepointCommande
    {
        private Connection sharepointConnection = null;

        protected bool isRecursionAllowed = false;

        public Connection SharepointConnection 
        { get {return sharepointConnection;}
            set { sharepointConnection = value; }
        }

        public virtual string ShortHelp { get { return "Summary not available"; } }
        public virtual string LongHelp { get { return "Description not available"; } }
        public virtual string Syntax { get { return "Syntax not available"; } }
        public virtual bool IsRecursionAllowed { get { return isRecursionAllowed; } }

        public abstract string Execute(string[] args);
    }
}
